import 'package:flutter/material.dart';

class ProductionPage extends StatefulWidget {
  const ProductionPage({super.key});

  @override
  State<ProductionPage> createState() => _ProductionPageState();
}

class _ProductionPageState extends State<ProductionPage> {
  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        title: const Text("作品展示"),
      ),
      body: Center(
          child: ListView(
        children: <Widget>[
          Card(
            shape: const RoundedRectangleBorder(
                borderRadius: BorderRadius.all(Radius.circular(10))),
            elevation: 20,
            margin: const EdgeInsets.all(10),
            child: Column(
              children: <Widget>[
                AspectRatio(
                  aspectRatio: 20 / 9,
                  child: Image.asset(
                    'assets/images/produc1.jpg',
                    fit: BoxFit.cover,
                  ),
                ),
                const ListTile(title: Text("作品：山水国漫")),
                const Divider(),
                const ListTile(title: Text("作者：王乐乐，动画1班"))
              ],
            ),
          ),
          Card(
            shape: const RoundedRectangleBorder(
                borderRadius: BorderRadius.all(Radius.circular(10))),
            elevation: 20,
            margin: const EdgeInsets.all(10),
            child: Column(
              children: <Widget>[
                AspectRatio(
                  aspectRatio: 20 / 9,
                  child: Image.asset(
                    'assets/images/produc2.jpg',
                    fit: BoxFit.cover,
                  ),
                ),
                const ListTile(title: Text("作品：房屋建模")),
                const Divider(),
                const ListTile(title: Text("作者：张华，动画1班"))
              ],
            ),
          ),
          Card(
            shape: const RoundedRectangleBorder(
                borderRadius: BorderRadius.all(Radius.circular(10))),
            elevation: 20,
            margin: const EdgeInsets.all(10),
            child: Column(
              children: <Widget>[
                AspectRatio(
                  aspectRatio: 20 / 9,
                  child: Image.asset(
                    'assets/images/produc3.jpg',
                    fit: BoxFit.cover,
                  ),
                ),
                const ListTile(title: Text("作品：人物设计")),
                const Divider(),
                const ListTile(title: Text("作者：黄琪，动画1班"))
              ],
            ),
          ),
          Card(
            shape: const RoundedRectangleBorder(
                borderRadius: BorderRadius.all(Radius.circular(10))),
            elevation: 20,
            margin: const EdgeInsets.all(10),
            child: Column(
              children: <Widget>[
                AspectRatio(
                  aspectRatio: 20 / 9,
                  child: Image.asset(
                    'assets/images/produc4.jpg',
                    fit: BoxFit.cover,
                  ),
                ),
                const ListTile(title: Text("作品：人物设计")),
                const Divider(),
                const ListTile(title: Text("作者：张美，动画1班"))
              ],
            ),
          ),
          Card(
            shape: const RoundedRectangleBorder(
                borderRadius: BorderRadius.all(Radius.circular(10))),
            elevation: 20,
            margin: const EdgeInsets.all(10),
            child: Column(
              children: <Widget>[
                AspectRatio(
                  aspectRatio: 20 / 9,
                  child: Image.asset(
                    'assets/images/produc5.jpg',
                    fit: BoxFit.cover,
                  ),
                ),
                const ListTile(title: Text("作品：氛围设计")),
                const Divider(),
                const ListTile(title: Text("作者：任月，动画1班"))
              ],
            ),
          ),
        ],
      )),
    );
  }
}
